#!/bin/bash
cd /home/pi/iot-gateway/
echo "start to compile"
export PKG_CONFIG_SYSROOT_DIR=/usr/lib/aarch64-linux-gnu
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig
cargo build --manifest-path /home/pi/iot-gateway/Cargo.toml  --release --package iot_gateway --bin iot_gateway --target=aarch64-unknown-linux-gnu